import View from "./views";
import { Toaster } from "react-hot-toast";
import "./App.css";
import Controller, { ControllerInstance } from "./controllers";
import { useRef } from "react";

const App = () => {
  const controllerRef = useRef<ControllerInstance>(null);
  return (
    <div className="App-container">
      <View controllerRef={controllerRef} />
      <Controller ref={controllerRef} />
      <Toaster />
    </div>
  );
};

export default App;
